﻿using System.ComponentModel.DataAnnotations;
using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace Models
{
    ///<summary>
    ///
    ///</summary>
    [Tenant("ERP_PROD")]
    [SugarTable("EP_SN_TREE","ERP_PROD")]
    public partial class Epsntree
    {
           public Epsntree() { }

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(50, ErrorMessage ="PTRT_NO长度50" )]
           public string PTRT_NO {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(23, ErrorMessage ="TEST_TIME长度23" )]
           public DateTime? TEST_TIME {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(40, ErrorMessage ="ROOT_SN长度40" )]
           public string ROOT_SN {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true)]
           public string PARENT_SN {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(1, ErrorMessage ="REWORK_FLAG长度1" )]
           public bool? REWORK_FLAG {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(36, ErrorMessage ="ProActivKey长度36" )]
           public string ProActivKey {get;set;}

           /// <summary>
           /// Desc:
           /// Default:N
           /// Nullable:False
           /// </summary>           
           [Required(ErrorMessage ="PRODUCTION_LOT_NO必填" )]
           [StringLength(36, ErrorMessage ="PRODUCTION_LOT_NO长度36" )]
           public string PRODUCTION_LOT_NO {get;set;}

           /// <summary>
           /// Desc:
           /// Default:N
           /// Nullable:False
           /// </summary>           
           [Required(ErrorMessage ="JobNum必填" )]
           [StringLength(40, ErrorMessage ="JobNum长度40" )]
           public string JobNum {get;set;}

    }
}
